package com.lc.controller;

import com.lc.service.StoreDetailService;
import com.lc.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sd")
public class StoreDetailController {

    @Autowired
    StoreDetailService storeDetailService;

    @GetMapping("/list")
    public R list(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam(defaultValue = "10") Integer pageSize) {
        return R.ok(storeDetailService.list(pageNum,pageSize));
    }
}
